import request from "../utils/request";

export const getAllProduct = (params?: any) => request.get('/gen/goods', { params })
export const updateProduct = (data: any) => request.put('/gen/goods', data)
export const delProductById = (data: any) => request.delete(`/gen/goods/${data}`)
export const addProduct = (data: any) => request.post('/gen/goods', data)